@use "sass:math";
@import '../../var';
@import '../../common.wxss';
.back-cover {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(#000, 0.66);
    transition: all math.div($transition-time, 2);
    &.hide {
        z-index: -1;
        opacity: 0 !important;
    }
    .effect-icon-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: $bgcolor-light;
        .image {
            width: 400rpx;
            margin-bottom: 40rpx;
        }
        .name {
            font-weight: 500;
            font-size: 33rpx;
            .number {
                color: $primary;
            }
        }
        .success {
            width: 100%;
            margin-top: 20rpx;
            margin-bottom: 60rpx;
            font-size: 43rpx;
            text-align: center;
        }
        .button {
            width: 313rpx;
            height: 76rpx;
            line-height: 76rpx;
        }
    }
}

.reward-container {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-dialog;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: $lg 0 $lg;
    background-color: $bgcolor;
    border-radius: $md $md 0 0;
    transition: opacity $transition-time, transform $transition-time;
    pointer-events: auto;
    &.hide {
        z-index: -1;
        transform: translateY(100%);
        opacity: 0;
    }
    .header {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: space-between;
        height: 48rpx;
        padding: $md $md * 2;
        line-height: $xl;
        .close {
            font-weight: 100;
            font-size: 150%;
        }
    }
}

.list {
    display: grid;
    grid-gap: 20rpx;
    grid-template-columns: repeat(4, 1fr);
    margin-top: $xl;
    font-size: $font-size-small;
    .item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .icon-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 120rpx;
            height: 120rpx;
            margin-bottom: $md;
            border-radius: 24rpx;
            .image {
                width: 72rpx;
                height: 72rpx;
            }
            .count {
                position: absolute;
                top: -8rpx;
                right: -13rpx;
                width: 32rpx;
                height: 32rpx;
                color: $bgcolor;
                line-height: 32rpx;
                text-align: center;
                background-color: #fb605a;
                border-radius: 100rpx;
            }
        }
        .price {
            color: #ffc000;
            .unit {
                width: 20rpx;
                height: 20rpx;
            }
        }
        &.active .icon-wrap {
            background-color: $bgcolor-gray;
        }
    }
}

.submit-btn {
    height: 80rpx;
    margin: 2 * $xl $xl 0;
    color: #fff !important;
    line-height: 80rpx;
    background-color: $primary;
    border-radius: 40rpx;
    &.disabled {
        background-color: lighten($primary, 30%) !important;
    }
    .sum {
        color: #f93932;
    }
}

.desc {
    padding: $xl;
    color: $info-color;
    font-size: $font-size-small;
    text-align: center;
}

.primary {
    color: $primary;
}

.toRecharge {
    color: #f93932;
}